﻿using System.ComponentModel;

namespace Moqikaka.BLL
{

    /// <summary>
    /// 状态码
    /// </summary>
    public enum ResultCodeEnum
    {
        /// <summary>
        /// 成功
        /// </summary>
        [DescriptionAttribute("成功")]
        Success = 0,

        /// <summary>
        /// 失败
        /// </summary>
        [DescriptionAttribute("失败")]
        Failure = 500,

        /// <summary>
        /// 错误
        /// </summary>
        [DescriptionAttribute("错误")]
        Error = 900,


        /// <summary>
        /// 没有找到方法
        /// </summary>
        [DescriptionAttribute("没有找到执行方法")]
        NotFindAction = 1000,

        /// <summary>
        ///参数不正确
        /// </summary>
        [DescriptionAttribute("参数不正确")]
        ParameterError = 1001,

        /// <summary>
        /// 登录成功
        /// </summary>
        [DescriptionAttribute("用户-登录成功")]
        LoginSuccess = 10,

        /// <summary>
        /// 登录失败
        /// </summary>
        [DescriptionAttribute("用户-登录失败")]
        LoginFailure = 11,


        #region 玩家回归活动状态码

        /// <summary>
        /// 可以参加玩家回归活动
        /// </summary>
        [DescriptionAttribute("回归活动-玩家可以参加回归活动")]
        CanJoinPlayerReturn = 10001,

        /// <summary>
        /// 不能参加玩家回归活动
        /// </summary>
        [DescriptionAttribute("回归活动-玩家不能参加回归活动")]
        CanNotJoinPlayerReturn = 10002,

        /// <summary>
        /// 已近参加玩家回归活动
        /// </summary>
        [DescriptionAttribute("回归活动-玩家已近参加回归活动")]
        HasBeenJoinPlayerReturn = 10003,


        /// <summary>
        /// 设置已参加活动
        /// </summary>
        [DescriptionAttribute("回归活动-标记活动已参加成功")]
        SetPlayerReturnSoccess = 10004,

        #endregion
    }

    /// <summary>
    /// 请求返回对象
    /// </summary>
    public class ResultResponse
    {
        /// <summary>
        /// 
        /// </summary>
        public ResultResponse()
        {
            ResultCode = ResultCodeEnum.Success;
        }
        /// <summary>
        /// 返回状态码
        /// </summary>
        public ResultCodeEnum ResultCode;

        /// <summary>
        /// 附加消息
        /// </summary>
        public string Message;

        /// <summary>
        /// 数据
        /// </summary>
        public dynamic Data;
    }
}
